﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000323 RID: 803
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ClockParkUnlockTalentScRsp : IMessage<ClockParkUnlockTalentScRsp>, IMessage, IEquatable<ClockParkUnlockTalentScRsp>, IDeepCloneable<ClockParkUnlockTalentScRsp>, IBufferMessage
	{
		// Token: 0x17000A61 RID: 2657
		// (get) Token: 0x060023E7 RID: 9191 RVA: 0x000655E9 File Offset: 0x000637E9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ClockParkUnlockTalentScRsp> Parser
		{
			get
			{
				return ClockParkUnlockTalentScRsp._parser;
			}
		}

		// Token: 0x17000A62 RID: 2658
		// (get) Token: 0x060023E8 RID: 9192 RVA: 0x000655F0 File Offset: 0x000637F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ClockParkUnlockTalentScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000A63 RID: 2659
		// (get) Token: 0x060023E9 RID: 9193 RVA: 0x00065602 File Offset: 0x00063802
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ClockParkUnlockTalentScRsp.Descriptor;
			}
		}

		// Token: 0x060023EA RID: 9194 RVA: 0x00065609 File Offset: 0x00063809
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ClockParkUnlockTalentScRsp()
		{
		}

		// Token: 0x060023EB RID: 9195 RVA: 0x00065611 File Offset: 0x00063811
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ClockParkUnlockTalentScRsp(ClockParkUnlockTalentScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.talentId_ = other.talentId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060023EC RID: 9196 RVA: 0x00065642 File Offset: 0x00063842
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ClockParkUnlockTalentScRsp Clone()
		{
			return new ClockParkUnlockTalentScRsp(this);
		}

		// Token: 0x17000A64 RID: 2660
		// (get) Token: 0x060023ED RID: 9197 RVA: 0x0006564A File Offset: 0x0006384A
		// (set) Token: 0x060023EE RID: 9198 RVA: 0x00065652 File Offset: 0x00063852
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17000A65 RID: 2661
		// (get) Token: 0x060023EF RID: 9199 RVA: 0x0006565B File Offset: 0x0006385B
		// (set) Token: 0x060023F0 RID: 9200 RVA: 0x00065663 File Offset: 0x00063863
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint TalentId
		{
			get
			{
				return this.talentId_;
			}
			set
			{
				this.talentId_ = value;
			}
		}

		// Token: 0x060023F1 RID: 9201 RVA: 0x0006566C File Offset: 0x0006386C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ClockParkUnlockTalentScRsp);
		}

		// Token: 0x060023F2 RID: 9202 RVA: 0x0006567A File Offset: 0x0006387A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ClockParkUnlockTalentScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && this.TalentId == other.TalentId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060023F3 RID: 9203 RVA: 0x000656B8 File Offset: 0x000638B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.TalentId != 0U)
			{
				num ^= this.TalentId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060023F4 RID: 9204 RVA: 0x00065710 File Offset: 0x00063910
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060023F5 RID: 9205 RVA: 0x00065718 File Offset: 0x00063918
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060023F6 RID: 9206 RVA: 0x00065724 File Offset: 0x00063924
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.Retcode);
			}
			if (this.TalentId != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.TalentId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060023F7 RID: 9207 RVA: 0x00065780 File Offset: 0x00063980
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.TalentId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.TalentId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060023F8 RID: 9208 RVA: 0x000657D8 File Offset: 0x000639D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ClockParkUnlockTalentScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.TalentId != 0U)
			{
				this.TalentId = other.TalentId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060023F9 RID: 9209 RVA: 0x00065828 File Offset: 0x00063A28
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060023FA RID: 9210 RVA: 0x00065834 File Offset: 0x00063A34
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 64U)
				{
					if (num != 96U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.TalentId = input.ReadUInt32();
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04000E98 RID: 3736
		private static readonly MessageParser<ClockParkUnlockTalentScRsp> _parser = new MessageParser<ClockParkUnlockTalentScRsp>(() => new ClockParkUnlockTalentScRsp());

		// Token: 0x04000E99 RID: 3737
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000E9A RID: 3738
		public const int RetcodeFieldNumber = 8;

		// Token: 0x04000E9B RID: 3739
		private uint retcode_;

		// Token: 0x04000E9C RID: 3740
		public const int TalentIdFieldNumber = 12;

		// Token: 0x04000E9D RID: 3741
		private uint talentId_;
	}
}
